/**
    [Filename]
    Purpose: [Purpose]

    @author Jason Wojcik
    @version [version]
*/

#include "CApp.h"

void CApp::OnCleanup(){

    //SDL_FreeSurface(Surf_Test);
    //SDL_FreeSurface(Surf_Display);

    for(int i = 0;i < CEntity::EntityList.size();i++) {
        if(!CEntity::EntityList[i]) continue;

        CEntity::EntityList[i]->OnCleanup();
    }

    CEntity::EntityList.clear();

    CArea::AreaControl.OnCleanup();

    SDL_Quit();
}
